package edu.cmu.cs.stage3.alice.authoringtool.editors.responseeditor;

import edu.cmu.cs.stage3.alice.authoringtool.AuthoringTool;
import edu.cmu.cs.stage3.alice.authoringtool.AuthoringToolResources;

public class SequentialResponsePanel extends CompositeResponsePanel {

	public SequentialResponsePanel(){
		super();
		headerText = AuthoringToolResources.getReprForValue(edu.cmu.cs.stage3.alice.core.response.DoInOrder.class);
	}

	public void set(edu.cmu.cs.stage3.alice.core.response.DoInOrder r, AuthoringTool authoringToolIn){
		super.set(r, authoringToolIn);
	}

	//Rem @Override
	protected java.awt.Color getCustomBackgroundColor(){
		return AuthoringToolResources.getColor("DoInOrder");
	}

	//Rem @Override
	protected void updateGUI(){
		super.updateGUI();
	}

	protected static java.awt.image.BufferedImage sequentialBackgroundImage;
	protected static java.awt.Dimension sequentialBackgroundImageSize = new java.awt.Dimension( -1, -1 );

	protected void createBackgroundImage( int width, int height ) {
		sequentialBackgroundImageSize.setSize( width, height );
		sequentialBackgroundImage = new java.awt.image.BufferedImage( width, height, java.awt.image.BufferedImage.TYPE_INT_ARGB );
		java.awt.Graphics2D g = (java.awt.Graphics2D)sequentialBackgroundImage.getGraphics();
		g.addRenderingHints( new java.awt.RenderingHints( java.awt.RenderingHints.KEY_ANTIALIASING, java.awt.RenderingHints.VALUE_ANTIALIAS_ON ) );
		g.setColor( backgroundColor );
		g.fillRect( 0, 0, width, height );
	}

}